package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cskaoyan.wordmemorize.dao.entity.UserVocExampleSentenceDO;
import com.cskaoyan.wordmemorize.dto.app.DisplayUserVocSentenceDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserVocExampleSentenceMapper extends BaseMapper<UserVocExampleSentenceDO> {

    // 获取全部单词。
    List<DisplayUserVocSentenceDTO> queryListSentenceByUserIdAndKeyword(@Param("keyword")String keyword,
                                                                        @Param("userId")long userId);
}
